<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>管理系统</title>
  <link rel="stylesheet" th:href="@{/css/layui.css}">
  <style>
    .card-item{
      margin-top: 30px;
      margin-left: 10px;;
      width: 450px;
      display: inline-block;
    }
  </style>
</head>
<body class="layui-layout-body">
<div th:each="knowledge : ${knowledgeList}" class="card-item">
  <div class="layui-card" >
    <div style="font-size: 16px" class="layui-card-header" th:text="'标题：'+ ${knowledge.title}"></div>
    <div class="layui-card-body">
      内容： [[${knowledge.content}]]
      <br/>
      创建时间：[[${#dates.format(knowledge.createTime,'yyyy-MM-dd')}]]
      <br/>
      发布人：[[${knowledge.username}]]
    </div>

  </div>
  </div>
</div>

<script th:src="@{layui.js}"></script>
<script th:src="@{js/jquery-3.3.1.js}"></script>
</body>
</html>